﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    x:Class="Utils.NewVersionPopup">
    <Popup x:Key="NewVersionPopup" Width="250" Placement="Custom" CustomPopupPlacementCallback="placePopup" MaxHeight="500" >
        <Border Background="{StaticResource BackgroundBrush}" BorderBrush="Gray" BorderThickness="1" CornerRadius="3">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <TextBlock Text="Новая версия плеера вРитме" FontWeight="Bold" HorizontalAlignment="Center"/>
                <Button Click="Close" Style="{StaticResource CloseButton}" HorizontalAlignment="Right" Margin="0,3,15,3"/>
                <ScrollViewer Grid.Row="1" Margin="3" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                    <TextBlock TextWrapping="WrapWithOverflow" Loaded="txtLoaded"/>
                </ScrollViewer>
            </Grid>
        </Border>
        <!--<Popup.Style>
            <Style>
                <Style.Triggers>
                    <EventTrigger RoutedEvent="Popup.Opened">
                        <BeginStoryboard>
                            <Storyboard>
                                <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Popup.IsOpen">
                                    <DiscreteBooleanKeyFrame KeyTime="00:00:05" Value="False"/>
                                </BooleanAnimationUsingKeyFrames>
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger>
                </Style.Triggers>
            </Style>
        </Popup.Style>-->
    </Popup>

</ResourceDictionary>